package com.shiro.work1.domain;

import lombok.Data;

import java.util.List;

@Data
public class Album implements Comparable<Album> {
    private Long id; //专辑id
    private String name; //专辑名
    private String author; //专辑作者
    private List<String> songs; //专辑歌曲

    @Override
    public int compareTo(Album o) {
        Long r=this.id-o.id;
        int result = r.intValue();
        return result;
    }
}
